import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('../components/Login.vue')
    },
    {
      path: '/',
      name: 'homepage',
      component: () => import('../components/HomeInfo.vue')
    },{
      path:'/adopt',
      name:'adopt',
      component:()=>import('../components/Adoption.vue')
    },{
      path:'/person',
      name:'person',
      component:()=>import('../components/PersonPage.vue')
    },{
      path:'/info',
      name:'info',
      component:()=>import('../components/PetinfoPage.vue')
    },{
      path:"/test",
      name:'test',
      component:()=>import("../components/Test.vue")
    },{
      path:"/manage",
      name:"manage",
      component:()=>import("../components/ManageScurePage.vue")
    },
    {
      path:'/about',
      name:'about',
      component: () => import('../components/AboutPage.vue')
    },{
      path:'/manageuser',
      name:'manageuser',
      component:() => import('../components/ManageUserPage.vue')
    },{
      path:"/managelogin",
      name:"managelogin",
      component:() => import('../components/ManageLogin.vue')
    },{
      path:"/managein",
      name:"managein",
      component:() => import('../components/ManageInPage.vue')
    }
  ]
})

export default router
